﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace pygs.Messaging
{
    public class Message
    {
        public string SecurityToken { get; set; }
        public DateTime Date { get; set; } 

        public Message(string securityToken, DateTime date)
        {
            this.SecurityToken = securityToken;
            this.Date = date;
        }

        public Message(string securityToken)
            : this(securityToken, DateTime.Now)
        {
        }

        public override string ToString()
        {
            return base.ToString() + "; date: " + Date.ToString() + "; token: " + SecurityToken;
        }
    }
}
